{include 'admin/layout/header_list'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/addContent.css?random={extendSetting('random')}">
<div class="addcontent">
    <form class="ajaxForm" method="post">
        <input type="hidden" name="_method" value="put">
        <input type="hidden" name="id" value="{if isset($info['id'])}{$info['id']}{/if}">
        <table class="table">
            <tr>
                <td class="tl">
                    <span><strong>* </strong>用户名</span>
                </td>
                <td>
                    <input class="long" type="text" name="user" value="{if isset($info['user'])}{$info['user']}{/if}">
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span>密码</span>
                </td>
                <td>
                    <input class="long" type="text" name="password" value="" placeholder="空为不修改">
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span>状态</span>
                </td>
                <td>
                    <p class="article-status" name="status">
                    <div>
                        <input name="status" value="1" type="radio" {if !$info} checked {/if} {if isset($info['status'])}{$info['status']==1?"checked":"" } {/if}>启用
                        <input name="status" value="0" type="radio" {if isset($info['status'])}{$info['status']==0?"checked":"" } {/if} >禁用
                    </div>
                    </p>
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span>角色</span>
                </td>
                <td>
                    <select name="roleId">
                        {if $roleKv}
                        {foreach $roleKv $key $val}
                        <option value="{$key}" {if $info} {$info['roleId']==$key ?"selected":""} {/if} >{$val}</option>
                        {/foreach}
                        {/if}
                    </select>
                </td>
            </tr>
        </table>
    </form>
    <div class="yifang-button">
        <button class="btns submit ajaxBtn" type="button" data-submit-url="{YIFANG_ROUTE_PREFIX}/memberAdmin" data-form=".ajaxForm" data-location-url="{YIFANG_ROUTE_PREFIX}/memberAdmin/index" data-close="5">
            确认
        </button>
        <button class="btns cancel">取消并返回</button>
    </div>
</div>
<script src="__ADMIN_STATIC__/js/addContent.js?random={extendSetting('random')}"></script>
{include 'admin/layout/footer'}